<?php
/**
 * User: Drery
 * Date: 2015/12/24
 * Time: 18:34
 */

namespace backend\components;


class HtmlHelper
{
    public static function getTagName($tag)
    {
        $re = preg_match('/^<(\w+)/',$tag,$matches);
        if (!$re)
            return false;
        return $matches[1];
    }
}